/*
    指定范围随机数
 */
import java.util.Random;

public class RandomDemo {
    public static void main(String[] args) {
        Random rd = new Random();

        int num = rd.nextInt(31) + 20;
        System.out.println(num);

    }
}
